package com.lg.jvm.stringtable;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Gang.Li
 * @date 2021/6/22 23:19
 */
public class Test2 {

    private static Integer a = 1;

    public static void main(String[] args) {
        System.out.println(getInt());


        String s = "12:30:00|5|3000,13:30:00|5|3000";
        for (int i = 0; i < s.split("\\|").length; i++) {
            System.out.println(s.split("|")[i]);

        }

        List<String> l1 = new ArrayList<>();
        List<Integer> l2 = new ArrayList<>();
        Object o1 = new Object();
        Object o2 = new Object();
        System.out.println(o1.getClass() == o2.getClass());

        System.out.println(l1.getClass() == l2.getClass());
        System.out.println(l1.getClass());

    }

    public static int getInt() {

        try {
            return a;
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            System.out.println("执行 finally");
            a = 2;
            return a;
        }
        //System.out.println("---");
        //return a;
    }
}
